﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Configuration.Logging
{
    public class Database : ConfigurationElement
    {
        public Database() { }

        [ConfigurationProperty("connectionString", IsRequired = true, IsKey = false)]
        public string ConnectionString
        {
            get { return (string)this["connectionString"]; }
            set { this["connectionString"] = value; }
        }

        [ConfigurationProperty("tableName", IsRequired = true, IsKey = false)]
        public string TableName
        {
            get { return (string)this["tableName"]; }
            set { this["tableName"] = value; }
        }
    }
}
